<?php
$dele_name=$_GET['dele_name'];
$output=array();
exec("sudo userdel -r ".$dele_name,$output,$error);

$output=array();
exec("cat /etc/postfix/relay_recipients |grep -v ".$dele_name,$output,$error);

$fp=fopen("/etc/postfix/relay_recipients","w+");
foreach($output as $key=>$value){
fwrite($fp,$value."\n");
}
fclose($fp);


echo "ユーザは削除されました!";
?>
